import Vue from 'vue'
import store from './store'
import App from './App'
import api from '@/common/vmeitime-http/'
import Json from './Json' //测试用数据
import * as filters from './filters'
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})
Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.$test=Json
Vue.prototype.$store = store
App.mpType = 'app'

const app = new Vue({
    ...App
})
const prePage = ()=>{
	let pages = getCurrentPages();
	let prePage = pages[pages.length - 2];
	// #ifdef H5
	return prePage;
	// #endif
	return prePage.$vm;
}
Vue.prototype.$prePage = prePage
app.$mount()